package com.rsxy.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.rsxy.service.mapper.WxInfoMapper;
import com.rsxy.service.pojo.RsWxInfo;
import com.rsxy.service.service.WxInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class WxInfoServiceImpl extends ServiceImpl<WxInfoMapper, RsWxInfo> implements WxInfoService {
    @Resource
    private WxInfoMapper wxInfoMapper;
    @Override
    public int addWxInfo(RsWxInfo wxInfo) {
        return wxInfoMapper.addWxInfo(wxInfo);
    }

    @Override
    public RsWxInfo getWxInfoById(String open_id) {
        return wxInfoMapper.getWxInfoById(open_id);
    }
}
